/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        MyArray myArray = new MyArray();//后面String暗可有可无
        Integer[] array = new Integer[]{12,34,65,67,89};
        String[] array2 = new String[]{"ad","af","sf","fs","sd"};
//        Integer ret = myArray.myArray(array);
        System.out.println(myArray.<Integer>myArray(array));//传入数组类型对泛类型方法传入类型参数进行判断
        System.out.println(myArray.myArray(array2));
//        System.out.println(ret);


    }
}